<?php
    class Booking_info extends CI_Model
    {       

        function Booking_info()
        {
            parent::__construct(); 
        }
        
        function excursion_book_info($booking_id){
             return $this->db->get_where('excursionbooking', array('id' => $booking_id))->row_array();
        }
        
        function excursion_details_info($exc_id){
            return $this->db->where('id',$exc_id)->get('excursions')->row_array();
        }
        
        function tour_book_info($booking_id){
             return $this->db->get_where('tourbooking', array('id' => $booking_id))->row_array();
        }
        
        function tour_details_info($t_id){
            return $this->db->where('id',$t_id)->get('tours')->row_array();
        }
        
        function avio_book_info($booking_id){
             return $this->db->get_where('airticketbooking', array('id' => $booking_id))->row_array();
        }
        
        function car_book_info($id){
            return $this->db->where('id',$id)->get('carbooking')->row_array();
        }
        
        function car_details_info($id) {
            return $this->db->where('id',$id)->get('car')->row_array();
        } 
        
    }
  
?>
